• 使用该功能您必须将模板文件属性设置为0777,否则无法写入修改后的模板。使用新建模板套系功能您的空间必须支持MKDIR函数。
  • 静态模板即将模板放在tpl/下,主要针对1.14以下的版本,分离了静态和动态模板的。
    各套风格模板例表 xydw_end; if($tempdir) echo "  |  编辑模板{$tempdir}"; print << xydw_end; if(!$tempdir){print << 模板编辑
    新建模板文件夹: (您需要先建立使用该文件夹的风格)

    {$td}
    xydw_end; } elseif($tempdir && !$filename){ print << {$tempdir}模板
    {$tempwarning} 新建模板文件: 动态模板 静态模板 (请勿加入后缀名.htm)
    {$td}

    xydw_end; } elseif($tempdir && $filename){ print << var n = 0; function displayHTML(obj) { win = window.open(" ", 'popup', 'toolbar = no, status = no, scrollbars=yes'); win.document.write("" + obj.value + ""); } function HighlightAll(obj) { obj.focus(); obj.select(); if (document.all) { obj.createTextRange().execCommand("Copy"); window.status = "将模板内容复制到剪贴板"; setTimeout("window.status=''", 1800); } } function findInPage(obj, str) { var txt, i, found; if (str == "") { return false; } if (document.layers) { if (!obj.find(str)) { while(obj.find(str, false, true)) { n++; } } else { n++; } if (n == 0) { alert("未找到指定字串。"); } } if (document.all) { txt = obj.createTextRange(); for (i = 0; i <= n && (found = txt.findText(str)) != false; i++) { txt.moveStart('character', 1); txt.moveEnd('textedit'); } if (found) { txt.moveStart('character', -1); txt.findText(str); txt.select(); txt.scrollIntoView(); n++; } else { if (n > 0) { n = 0; findInPage(str); } else { alert("未找到指定字串。"); } } } return false; }
    {$tempdir}模板


           

    xydw_end; } ?>